<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员管理-有点</title>
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/css.css">
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/pageGroup.css">
<script type="text/javascript" src="<?php echo Url::base(); ?>/resource/jquery.js"></script>
<script type="text/javascript" src="<?php echo Url::base(); ?>/resource/jquery-1.js"></script>

<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/themes/icon.css">
	<script type="text/javascript" src="<?php echo Url::base(); ?>/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo Url::base(); ?>/jquery.easyui.min.js"></script>



<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>
<div id="dlg" class="easyui-dialog" title="Basic Dialog" data-options="" style="width:800px;height:500px;padding:10px">

</div>
<a href="<?php echo Url::base(); ?>index.php/productm/action_add" class="easyui-linkbutton" data-options="iconCls:'icon-add'">Add</a>
<div style="margin:20px 0;"></div>
	<table class="easyui-datagrid" title="DataGrid with Toolbar" style="width:700px;height:250px"
			data-options="onDblClickRow:function(index,row){
			window.open ('<?php echo Url::base(); ?>index.php/productm/detail?id='+row.id,'newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no') 

		},pagination:true,rownumbers:true,singleSelect:true,url:'<?php echo Url::base(); ?>index.php/productm/getList',method:'get'">
		<thead>
			<tr>
				<th data-options="field:'id',width:80">Item ID</th>
				<th data-options="field:'productNumber',width:100">Product</th>
				<th data-options="field:'replying',width:80,align:'right'">回复数</th>
				<th data-options="field:'score',width:80,align:'right'">总评分数</th>
				<th data-options="field:'serviceScore',width:240">服务评价</th>
				<th data-options="field:'logisticsScore',width:60,align:'center'">快递评价</th>
				<th data-options="field:'shelves',width:60,align:'center',formatter: function(value,row,index){
				
				if (row.shelves == 0){
					return '未上架';
				} else {
					return '已上架';
				}
			}">是否上架</th>
				<th data-options="field:'brand',width:60,align:'center'">品牌</th>
				<th data-options="field:'category',width:60,align:'center'">类目</th>
				<th data-options="field:'classification',width:60,align:'center'">二级类目</th>

				<th data-options="field:'title',width:60,align:'center'">标题</th>

				<th data-options="field:'iscoupon',width:60,align:'center',formatter: function(value,row,index){
				
				if (row.iscoupon == 1){
					return '可以';
				} else {
					return '不可以';
				}
			}">是否可以使用优惠券</th>

				<th data-options="field:'isget',width:60,align:'center',formatter: function(value,row,index){
				
				if (row.isget == 1){
					return '可以自提';
				} else {
					return '不可以';
				}
			}">是否可以自提</th>

				<th data-options="field:'isstore',width:60,align:'center',formatter: function(value,row,index){
				
				if (row.isstore == 1){
					return '可以门店配送';
				} else {
					return '不可以';
				}
			}">是否可以门店配送</th>

				<th data-options="field:'weight',width:60,align:'center'">重量</th>
	<th data-options="field:'expressDefault',width:60,align:'center'">重量</th>

			</tr>
		</thead>
	</table>

	


	<script type="text/javascript">

		$(function(){
			$('#dlg').dialog('close')
		})

	</script>
</body></html>